package com.onefish.toolkit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.io.ClassPathResource;

import java.lang.management.ManagementFactory;

@SpringBootApplication
public class Application {
	public static ConfigurableApplicationContext context;
	public static void main(String[] args) {
		context = SpringApplication.run(Application.class, args);
		//	启动时添加监听事件
		RefreshAndRestartListener.addApplicationListener(context);
	}

}
